package com.jp.fm.data;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;

public class BillReminder implements Comparable<BillReminder> {

	private Integer id = null;
	private String name = null;
	private Float amount = null;
	private Account account = null;
	private Date dueDate = null;
	private String repeatInterval = null;

	public BillReminder(final Integer id, final String name,
			final Float amount, final Account account, final Date dueDate,
			final String repeatInterval) {
		super();
		this.id = id;
		this.name = name;
		this.amount = amount;
		this.account = account;
		this.dueDate = dueDate;
		this.repeatInterval = repeatInterval;
	}

	public final Integer getId() {
		return this.id;
	}

	public final void setId(final Integer id) {
		this.id = id;
	}

	public final String getName() {
		return this.name;
	}

	public final void setName(final String name) {
		this.name = name;
	}

	public final Float getAmount() {
		return this.amount;
	}

	public final void setAmount(final Float amount) {
		this.amount = amount;
	}

	public final Account getAccount() {
		return this.account;
	}

	public final void setAccount(final Account account) {
		this.account = account;
	}

	public final Date getDueDate() {
		return this.dueDate;
	}

	public final void setDueDate(final Date dueDate) {
		this.dueDate = dueDate;
	}

	public final String getRepeatInterval() {
		return this.repeatInterval;
	}

	public final void setRepeatInterval(final String repeatInterval) {
		this.repeatInterval = repeatInterval;
	}

	public final String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

	@Override
	public final int compareTo(final BillReminder o) {

		return this.getName().compareTo(o.getName());
	}
}
